<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
-->
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="google-site-verification" content="xFzNIueq3R8JaN4lhRIGR52knimPbI12cfVXJLQ5Xrk" />
    <link rel="SHORTCUT ICON" href="/images/logo.ico"> 
    <title><%= @title.nil? ? "Neo的技术笔记" :"#{@title}" %></title>
  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-13132574-2");
  pageTracker._trackPageview();
  } catch(err) {}</script>
    <%= stylesheet_link_tag "text_main" %>
  </head>
  
  <body>
    <div id="container">
      <!-- header -->
      <div id="header">
          <a href="/"><h2>Neo 的技术笔记</h2></a>
      </div>
      <!--end header -->
      <!-- main -->
      <div id="sidebar">
        <div class="sidebar_top"></div>
        <div class="sidebar_main">
          <h3>Tags</h3>
          <ul>
						 <% @all_categories.each do |category| %>
               <li><%= link_to "#{category.name}（#{category.articles.count}）",category_path(category) %></li>
						<% end %>
          </ul>
        </div>
        <div class="sidebar_bottom"></div>
        
        <div class="sidebar_top"></div>
        <div class="sidebar_main">
          <h3>Recent articles</h3>
          <ul>
							<% @lately_articles.each do |article| %>
                <li><%= link_to(article.title,"/articles/#{article.permalink}") %></li>
							<% end %>
          </ul>
        </div>
        <div class="sidebar_bottom"></div>

        <div class="sidebar_top"></div>
        <div class="sidebar_main">
          <h3>Fo me</h3>
          <ul>
              <a href="http://twitter.com/neocanable"><%= image_tag "t1.gif" %></a>
          </ul>
        </div>
        <div class="sidebar_bottom"></div>

      </div>
      
      <div id="text">
        <div id="text_top"></div>
        
        <div id="text_main">
          <%= yield %>
        </div>
        
        <div id="text_bottom"></div>
      </div>
      <!-- end main -->
      <!-- footer -->
      <div id="footer">
      </div>
      <!-- end footer -->
    </div>
  </body>
</html>
